package basic.dao.impl;

import java.io.Serializable;
import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import basic.dao.HiberDao;

public class HiberDaoImpl extends HibernateDaoSupport implements HiberDao {
	
	private static final Log LOGGER = LogFactory.getLog(HiberDaoImpl.class);

	public Object load(Class<?> clazz, Serializable serial) {
		return this.getHibernateTemplate().load(clazz, serial);
	}

	public List<?> find(String hql) {
		return this.getHibernateTemplate().find(hql);
	}

	public void save(Object object) {
		this.getHibernateTemplate().saveOrUpdate(object);
	}
}
